package stuff;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

public class DisposeAction extends AbstractAction{

	private static final long serialVersionUID = 1L;
	private JFrame param;
	public DisposeAction(JFrame frame) {
		this.param = frame;
	}
	@Override
	public void actionPerformed(ActionEvent arg0) {
		param.dispose();
	}
}
